import service from '@/utils/request'

// @Tags Timetable
// @Summary 创建Timetable
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.Timetable true "创建Timetable"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /timetable/createTimetable [post]
export const createTimetable = (data) => {
     return service({
         url: "/timetable/createTimetable",
         method: 'post',
         data
     })
 }


// @Tags Timetable
// @Summary 删除Timetable
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.Timetable true "删除Timetable"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /timetable/deleteTimetable [delete]
 export const deleteTimetable = (data) => {
     return service({
         url: "/timetable/deleteTimetable",
         method: 'delete',
         data
     })
 }

// @Tags Timetable
// @Summary 删除Timetable
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除Timetable"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /timetable/deleteTimetable [delete]
 export const deleteTimetableByIds = (data) => {
     return service({
         url: "/timetable/deleteTimetableByIds",
         method: 'delete',
         data
     })
 }

// @Tags Timetable
// @Summary 更新Timetable
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.Timetable true "更新Timetable"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /timetable/updateTimetable [put]
 export const updateTimetable = (data) => {
     return service({
         url: "/timetable/updateTimetable",
         method: 'put',
         data
     })
 }


// @Tags Timetable
// @Summary 用id查询Timetable
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.Timetable true "用id查询Timetable"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /timetable/findTimetable [get]
 export const findTimetable = (params) => {
     return service({
         url: "/timetable/findTimetable",
         method: 'get',
         params
     })
 }


// @Tags Timetable
// @Summary 分页获取Timetable列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.PageInfo true "分页获取Timetable列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /timetable/getTimetableList [get]
 export const getTimetableList = (params) => {
     return service({
         url: "/timetable/getTimetableList",
         method: 'get',
         params
     })
 }

// @Tags Timetable
// @Summary 用TeacherName查询Timetable
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.Timetable true "用TeacherName查询Timetable"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /timetable/findTimetableByTeacherName [get]
export const findTimetableByTeacherName = (params) => {
    return service({
        url: "/timetable/findTimetableByTeacherName",
        method: 'get',
        params
    })
}

// @Tags Timetable
// @Summary 用ClassId查询Timetable
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.Timetable true "用ClassId查询Timetable"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /timetable/findTimetable [get]
export const findTimetableByClassId = (params) => {
    return service({
        url: "/timetable/findTimetableByClassId",
        method: 'get',
        params
    })
}
